package com.abkj.platform.tail.socket;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import org.apache.catalina.websocket.MessageInbound;

public class SocketServlet extends HttpServlet
{
  private static final long serialVersionUID = 1L;
  private static List<MessageInbound> socketList;

  public void init(ServletConfig config)
    throws ServletException
  {
    socketList = new ArrayList<MessageInbound>();
    super.init(config);
  }

  public static synchronized List<MessageInbound> getSocketList() {
    return socketList;
  }
}